package com.example.design.bilibili.factory.simpleFactory;

public abstract class Pizza {

    private String name;

    //制作不通的pizza，原材料不同，所以此方法设置成抽象，让子类进行实现
    public abstract void prepare();

    public void bake(){
        System.out.println(name+"正在烘烤");
    }

    public void cut(){
        System.out.println(name+"正在切份");
    }

    public void box(){
        System.out.println(name+"正在打包");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
